package com.jyu.sati.business.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jyu.sati.entity.Company;
import com.jyu.sati.vo.UserInfoPageVo;
import com.jyu.sati.vo.UserInfoVo;

public interface CompanyDao {
	int deleteByPrimaryKey(Integer companyId);

	int insert(Company record);

	int insertSelective(Company record);

	Company selectByPrimaryKey(Integer companyId);

	int updateByPrimaryKeySelective(Company record);

	int updateByPrimaryKey(Company record);

	/**
	 * 通过用户id获取企业信息
	 * 
	 * @param userId
	 * @return
	 */
	Company getCompanyByUserId(@Param("userId") String userId);

	/**
	 * 获取一页企业用户数据
	 * 
	 * @param condition
	 * @return
	 */
	List<UserInfoVo> getCompanyUserInfoPageByCondition(UserInfoPageVo condition);

	/**
	 * 根据查询条件获取总数
	 * 
	 * @param condition
	 * @return
	 */
	Integer getTotalNoByCondition(UserInfoPageVo condition);

}